export const testPhone = (phone) => {
	const reg = /^1[3456789]\d{9}$/
	if (reg.test(phone)) {
		alert("手机号码通过")
		return true
	} else {
		alert("手机号码失败")
		return false
	}
};
export const testCode = (code) => {
	const reg = /^\w{4}$/
	if (reg.test(code)) {
		alert("验证码通过")
		return true
	} else {
		alert("验证码验证失败")
		return false
	}
};

